package com.serivice.impl;

import com.dao.UserDao;
import org.springframework.stereotype.Component;

@Component ("userDao")//添加到IOC容器 对外名称userDao 不写默认userDao
public class UseDaolimol implements UserDao {
    @Override
    public boolean login(String name,String passwzord){
        if (name.equals("张三")  && passwzord.equals("123")){
            return true;
        }
        return true;
    }

}
